package com.ruoyi.team.service.impl;


import com.ruoyi.team.domain.vo.MgTeam;
import com.ruoyi.team.domain.vo.TeamOrder;
import com.ruoyi.team.domain.vo.TeamUser;
import com.ruoyi.team.mapper.TeamInformationMapper;
import com.ruoyi.team.service.ITeamSignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamSignServiceImpl implements ITeamSignService {
    @Autowired
    private TeamInformationMapper mgTeamMapper;

    @Override
    public List<MgTeam> selectTeamList(MgTeam mgTeam) {
        return mgTeamMapper.selectTeamListBySign(mgTeam);
    }

    @Override
    public MgTeam selectTeamById(Integer id) {
        return mgTeamMapper.selectTeamById(id);
    }

    @Override
    public int updateMgTeam(MgTeam data) {
        return mgTeamMapper.updateMgTeam(data);
    }

    @Override
    public List<TeamUser> getUserListByTeamId(Integer id) {
        return mgTeamMapper.getUserListByTeamId(id);
    }

    @Override
    public List<TeamOrder> getOrderListByTeamId(Integer id) {
        return mgTeamMapper.getOrderListByTeamId(id);
    }
}
